<div id="middle">
    <h2>
		<?php echo $this->lang->line('last_news'); ?>

		<span>
			<a href="/"><?php echo $this->lang->line('home'); ?></a> > 
			<a href="/news"><?php echo $this->lang->line('news'); ?></a>
			<?php if ($current_category_id > 0 && $current_category[0]): ?>
				>
				<?php echo $current_category[0]->name; ?>
			<?php endif; ?>
		</span>
    </h2>

    <dl>
		<?php foreach ($categories as $category): ?>
			<?php if ($current_category_id > 0 && $current_category[0]): ?>
				<dt<?php echo $category->id == $current_category[0]->id ? ' class="active"' : ''; ?>>
			<?php else: ?>
				<dt>
			<?php endif; ?>
			<a href="/news/index/<?php echo $category->id; ?>">
				<?php echo $category->name; ?>
			</a>
			</dt>
		<?php endforeach; ?>
    </dl>

    <ul>
		<?php foreach ($news as $item): ?>
			<li>
				<div class="title">
					<div class="date">
						<h4><?php echo date('M', strtotime($item->created_at)); ?></h4>
						<h3><?php echo date('d', strtotime($item->created_at)); ?></h3>
					</div>
					<a href="/news/show/<?php echo $item->id; ?>"><?php echo $item->title; ?></a>
				</div>
				<div class="content">
					<!--<img width="650" src="/assets/upload/img/<?php echo $item->cover_name; ?>" alt="<?php echo $item->title; ?>"/>-->
					<p>
						<?php echo my_substr(plain_text($item->content), 500); ?>
					</p>
					<div class="more">
						<a href="/news/show/<?php echo $item->id; ?>">
							<img src="/assets/img/more.png" alt="more"/>
						</a>
					</div>
				</div>
			</li>
		<?php endforeach; ?>
    </ul>

    <div class="clear"></div>
</div>